home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / c / library / dos / diverses / cexpress / keyboard / horzpos.asm < prev    next >
Encoding:
Assembly Source File  |  1989-05-03  |  425 b   |  20 lines

  1. ;unsigned short  horizontal_position();
  2.  
  3.     EXTRN  _memory_model:byte
  4.  
  5. _TEXT    SEGMENT BYTE PUBLIC 'CODE'
  6.     ASSUME CS:_TEXT
  7.     PUBLIC _horizontal_position
  8. _horizontal_position proc near
  9.     mov  ax,3        ;function number
  10.     int  33h        ;vector number
  11.     mov  ax,cx        ;set return value
  12.     cmp  _memory_model,0    ;quit
  13.     jle  quit        ;
  14.     db   0CBh        ;RET far
  15. quit:    ret            ;RET near
  16.     ret            ;quit
  17. _horizontal_position ENDP
  18. _TEXT    ENDS
  19.     END
  20.